package priv.dajie.tzzq.service;

import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import priv.dajie.tzzq.common.SqlSessionFactoryUtils;
import priv.dajie.tzzq.dao.BuffMapper;
import priv.dajie.tzzq.model.QualityName;
import priv.dajie.tzzq.spider.model.ItemInfo;
import priv.dajie.tzzq.spider.model.SellingInfo;

/**
 * @ClassName BuffService
 * @Description
 * @Author dajie
 * @Date 2019/10/17 4:23 下午
 * @Version V1.0
 **/
public interface PlatformService {

    /**
     * @param sellingInfo
     * @return boolean
     * @author dajie
     * @date 2019/10/17
     */
    boolean addItemPro(SellingInfo sellingInfo);

    boolean addItem(SellingInfo sellingInfo);

    boolean addInfo(ItemInfo itemInfo);

    boolean updateInfo(ItemInfo itemInfo);

    Integer countItem(String id);

    ItemInfo getInfo(ItemInfo itemInfo);

    ItemInfo getInfoBySteamName(String steamName);

    ItemInfo getInfoById(String id);

    ItemInfo getInfoByQualityName(QualityName qualityName);

}
